]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix indentation issues in altTab.js, plus minor cleanup in some other files.
authorSiegfried-Angel Gevatter Pujals <rainct@ubuntu.com>
Wed, 5 Aug 2009 23:54:22 +0000 (01:54 +0200)
committerSiegfried-Angel Gevatter Pujals <rainct@ubuntu.com>
Wed, 5 Aug 2009 23:54:22 +0000 (01:54 +0200)
js/ui/altTab.js
js/ui/appDisplay.js
js/ui/docDisplay.js
js/ui/genericDisplay.js
js/ui/widget.js

index f11ea3db1baba955040312f1f2f44fe19183b36a..f8470f19875dda8ef0e3e86d5dc7f02206988511 100644 (file)
@@ -36,9 +36,9 @@ function AltTabPopup() {
 
 AltTabPopup.prototype = {
     _init : function() {
-       let global = Shell.Global.get();
+        let global = Shell.Global.get();
 
-       this.actor = new Big.Box({ background_color : POPUP_BG_COLOR,
+        this.actor = new Big.Box({ background_color : POPUP_BG_COLOR,
                                    corner_radius: POPUP_GRID_SPACING,
                                    padding: POPUP_GRID_SPACING,
                                    spacing: POPUP_GRID_SPACING,
@@ -48,15 +48,15 @@ AltTabPopup.prototype = {
         // but Tidy.Grid is lame in various ways. (Eg, it seems to
         // have a minimum size of 200x200.) So we create a vertical
         // Big.Box containing multiple horizontal Big.Boxes.
-       this._grid = new Big.Box({ spacing: POPUP_GRID_SPACING,
+        this._grid = new Big.Box({ spacing: POPUP_GRID_SPACING,
                                    orientation: Big.BoxOrientation.VERTICAL });
         let gcenterbox = new Big.Box({ orientation: Big.BoxOrientation.HORIZONTAL,
                                        x_align: Big.BoxAlignment.CENTER });
         gcenterbox.append(this._grid, Big.BoxPackFlags.NONE);
-       this.actor.append(gcenterbox, Big.BoxPackFlags.NONE);
+        this.actor.append(gcenterbox, Big.BoxPackFlags.NONE);
 
         // Selected-window label
-       this._label = new Clutter.Text({ font_name: "Sans 16px",
+        this._label = new Clutter.Text({ font_name: "Sans 16px",
                                          ellipsize: Pango.EllipsizeMode.END });
 
         let labelbox = new Big.Box({ background_color: POPUP_INDICATOR_COLOR,
@@ -67,7 +67,7 @@ AltTabPopup.prototype = {
                                        x_align: Big.BoxAlignment.CENTER,
                                        width: POPUP_LABEL_MAX_WIDTH + POPUP_GRID_SPACING });
         lcenterbox.append(labelbox, Big.BoxPackFlags.NONE);
-       this.actor.append(lcenterbox, Big.BoxPackFlags.NONE);
+        this.actor.append(lcenterbox, Big.BoxPackFlags.NONE);
 
         // Indicator around selected icon
         this._indicator = new Big.Rectangle({ border_width: POPUP_INDICATOR_WIDTH,
@@ -76,10 +76,10 @@ AltTabPopup.prototype = {
                                               color: POPUP_TRANSPARENT });
         this.actor.append(this._indicator, Big.BoxPackFlags.FIXED);
 
-       this._items = [];
+        this._items = [];
         this._toplevels = global.window_group.get_children();
 
-       global.stage.add_actor(this.actor);
+        global.stage.add_actor(this.actor);
 
         // Dark translucent window used to cover all but the
         // currently-selected window while Alt-Tabbing. Actually
@@ -142,7 +142,7 @@ AltTabPopup.prototype = {
     },
 
     show : function(initialSelection) {
-       let global = Shell.Global.get();
+        let global = Shell.Global.get();
 
         Main.startModal();
 
@@ -154,7 +154,7 @@ AltTabPopup.prototype = {
                                        time: SHOW_TIME,
                                        transition: "easeOutQuad" });
 
-       this.actor.show_all();
+        this.actor.show_all();
         this.actor.x = Math.floor((global.screen_width - this.actor.width) / 2);
         this.actor.y = Math.floor((global.screen_height - this.actor.height) / 2);
 
@@ -162,7 +162,7 @@ AltTabPopup.prototype = {
     },
 
     destroy : function() {
-       this.actor.destroy();
+        this.actor.destroy();
         this._overlay.destroy();
 
         Main.endModal();
@@ -240,7 +240,7 @@ AltTabPopup.prototype = {
     },
 
     _adjust_overlay : function() {
-       let global = Shell.Global.get();
+        let global = Shell.Global.get();
 
         if (this._selected && this._selected.icon_rect) {
             // We want to highlight a specific rectangle within the
index e5437bd65a8a12c48716cf84a71081fcec110034..a3cf04503828f700eb9bff8b01af485d3ff76efe 100644 (file)
@@ -424,7 +424,7 @@ AppDisplay.prototype = {
             if (category.indexOf(search) >= 0)
                 return true;
         }
-       
+
         return false;
     },
 
index fa9ad3c1ebb3c31d137bfdce47b6f2f93eea5531..6f1dd4d9721cea7278d7d64b8850bde5fe45c044 100644 (file)
@@ -131,7 +131,6 @@ DocDisplay.prototype = {
 
     // Gets the list of recent items from the recent items manager.
     _refreshCache : function() {
-        let me = this;
         if (!this._docsStale)
             return;
         this._allItems = this._docManager.getItems();
index 2f4a9e41bdeb70c6794dd228d23596bbfbb49bdb..ba26cb3778f65acfd8f1528f258209ee5a21be68 100644 (file)
@@ -233,13 +233,13 @@ GenericDisplayItem.prototype = {
         return details;
     },
 
-    // Destoys the item.
+    // Destroys the item.
     destroy: function() {
       this.actor.destroy();
     },
-    
+
     //// Pure virtual public methods ////
-  
+
     // Performes an action associated with launching this item, such as opening a file or an application.
     launch: function() {
         throw new Error("Not implemented");
index e5006d18a45ddeb0180971cc489caabd0faa0056..b3326576ab7fcff7a31093a3e44161a46502f187 100644 (file)
@@ -10,7 +10,6 @@ const Pango = imports.gi.Pango;
 const Shell = imports.gi.Shell;
 const Signals = imports.signals;
 
-const DocDisplay = imports.ui.docDisplay;
 const DocInfo = imports.misc.docInfo;
 
 const COLLAPSED_WIDTH = 24;